package api_.object_;

public class EqualsDemo
{
    public static void main(String[] args)
    {
        Point p1 = new Point(100,200);
        Point p2 = new Point(100,200);
        System.out.println( p1 == p2 );
        System.out.println(p1.equals(p2));     //equals 也经常被重写
    }
}
